package com.geek.spring.single;

/**
 * @program java-spring
 * @description: 静态内部类
 * @author: chanzhugang
 * @create: 2021/04/18 23:56
 */
public class SingleDemo04 {

    private static class SingleHolder {
        private static SingleDemo04 instance = new SingleDemo04();
    }

    public static SingleDemo04 getInstance() {
        return SingleHolder.instance;
    }
}